<template>
  <div class="list-wrap">
    <div class="top-container">
      <div class="search-box"><slot name="search" /></div>
      <div class="control-box">
        <div class="control-left">
          <slot name="control-left" />
        </div>
        <div class="control-right">
          <slot name="control-right" />
        </div>
      </div>
    </div>
    <div class="list-container"><slot name="list" /></div>
    <div class="page-container"><slot name="page" /></div>
  </div>
</template>

<script>
export default {
  name: "ListWrap",
};
</script>

<style sopced>
.list-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.top-container {
  width: 100%;
  margin-bottom: 5px;
  padding: 10px 0;
  background-color: #f4f4f5;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}
.search-box {
  width: 100%;
  max-height: 100px;
  padding: 0 10px;
  margin-bottom: 5px;
}
.control-box {
  width: 100%;
  height: 50px;
  padding: 0 10px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.list-container {
  flex: 1;
  width: 100%;
  padding: 0;
  margin-bottom: 5px;
}
.page-container {
  width: 100%;
  height: 50px;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: flex-end;
}
</style>
